package com.twoGroup.boot.service;


import com.twoGroup.boot.pojo.User;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UserService {

    int addUser(String password, String email, String nickname);

    List<User> loginUser(String email);

    int updateUser(User user);

    int deleteUser(int userId);

    int resetPassword(String email, String password);

    Integer selectCountEmail(String email);

    Integer selectCountId(Integer userId);

    List<User> queryUserId(Integer userId);

    Integer booleanAdmin(String email);

    List<User> queryEmail(String email);

    Integer queryNickname(String nickname);

    User queryUserToEmail(String email);

    int applyBusiness(int userId);

    User queryUser(String email);

    Integer updatePassword(Integer userId, String password, String newPassword);

    int updateHeadImg(Integer userId, String headImg);

    User selectUserId(Integer userId);

    User selectAllUser(Integer userId);


}
